package world.ztomorrow.novel.constant;

public class SystemConstant {

    /**
     * 小说信息改变交换机
     */
    public static final String BOOK_ID_DIRECT = "bookId.direct";

    /**
     * Elasticsearch book 索引更新的队列
     */
    public static final String ES_UPDATE_QUEUE = "es.book.update.queue";

    public static final String UPDATE_ROUTING_KEY = "update.success";
    public static final String INDEX_BOOK = "book";

    /**
     * 作品方向
     */
    public static String CAFFEINE_WORK_DIRECTION = "caffeineWorkDirection";
    public static String REDIS_WORK_DIRECTION = "cache:work:direction:";
    public static long REDIS_WORK_DIRECTION_TTL = 45L;

    /**
     * 小说信息
     */
    public static String CAFFEINE_BOOK_INFO = "caffeineBookInfo";
    public static long CAFFEINE_BOOK_INFO_TTL = 8L;
    public static String REDIS_BOOK_INFO = "book:info:";
    public static long REDIS_BOOK_INFO_TTL = 18L;

    /**
     * 小说推荐列表
     */
    public static String CAFFEINE_REC_BOOKS = "caffeineRecBooks";
    public static String REDIS_REC_BOOKS = "cache:Rec:Books";
    public static long REDIS_REC_BOOKS_TTL = 10L;

    /**
     * 小说章节信息
     */
    public static String CAFFEINE_BOOK_CHAPTER = "caffeineBookChapter";
    public static String REDIS_BOOK_CHAPTER = "book:chapter:info:";
    public static long REDIS_BOOK_CHAPTER_TTL = 10L;

    /**
     * 小说章节内容
     */
    public static String CAFFEINE_BOOK_CONTENT = "caffeineBookContent";
    public static String REDIS_BOOK_CONTENT = "book:chapter:content:";
    public static long REDIS_BOOK_CONTENT_TTL = 8L;

    public static String BOOK_WORD_COUNT = "word_count";
}
